package com.wbt.spring.transaction;


import com.wbt.spring.e02.service.UserService;
import com.wbt.spring.transaction.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.wbt.spring.transaction.**")
public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ContextApplication.class);

        AccountService accountService = context.getBean(AccountService.class);
        accountService.save();

    }
}
